#include "MineDesign3D/DrawXYZAxis.hpp"

#include <Windows.h>
#include <GL/GL.h>

#include "GLHelper/ScopedAttribPush.hpp"
namespace MineDesign3D{
void DrawXYZAxis()
{
	GLHelper::ScopedAttribPush Att(GL_CURRENT_BIT);

	glBegin(GL_LINES);
		glColor3f(1.f, 0, 0);
		glVertex3f(0, 0, 0);
		glVertex3f(XYZAXIS_LENGTH, 0, 0);
				
		glColor3f(0, 1.f, 0);
		glVertex3f(0, 0, 0);
		glVertex3f(0, XYZAXIS_LENGTH, 0);

		glColor3f(0, 0, 1.f);
		glVertex3f(0, 0, 0);
		glVertex3f(0, 0, XYZAXIS_LENGTH);
	glEnd();
}
}//MineDesign3D
